import QtQuick

import "../../common"
Rectangle{

    width: content.width + 20
    height: content.height + 20

    property alias title:title.text
    property alias columns:grid.columns
    property alias model:repeater.model

    property Component slotComp:ItemSlot{}

    color:Qt.rgba(0,0,0,0.2)
    Item{
        id:content
        anchors.centerIn: parent
        width: column.width
        height:column.height

        Column{
            id:column
            spacing: 10
            Text{
                id:title
                text: "标题"
                font{
                    pixelSize: 20
                }
            }

            Grid{
                id:grid
                spacing: 4
                Repeater{
                    id:repeater

                    Loader{
                        sourceComponent: slotComp
                    }

                }

            }

        }


    }



}
